package com.example.webrtcproject;

import org.webrtc.EglBase;
import org.webrtc.HardwareVideoEncoderFactory;
import org.webrtc.VideoCodecInfo;
import org.webrtc.VideoEncoder;
import org.webrtc.VideoEncoderFactory;

import androidx.annotation.Nullable;

/**
 * @作者 mazhuang
 * @创建时间 2020/1/20 13:51
 * @文件描述:
 */
public class MyVideoEncoderFactory extends HardwareVideoEncoderFactory {

    public MyVideoEncoderFactory(EglBase.Context sharedContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile) {
        super(sharedContext, enableIntelVp8Encoder, enableH264HighProfile);
    }


    @Nullable
    @Override
    public VideoEncoder createEncoder(VideoCodecInfo input) {
        String name = input.name;
        return super.createEncoder(input);
    }


}
